/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import java.io.Serializable;

/**
 *
 * @author Kim
 */
public class UserBean implements Serializable {

    private String uid, pwd, img, contact, mobile, tele, address, email;
    private boolean gender, status;
    private int accId, typeId, cityId;

    public UserBean() {
    }

    public UserBean(String uid, String pwd, String img, String contact, String mobile, String tele, String address, String email, boolean gender, boolean status, int accId, int typeId, int cityId) {
        this.uid = uid;
        this.pwd = pwd;
        this.img = img;
        this.contact = contact;
        this.mobile = mobile;
        this.tele = tele;
        this.address = address;
        this.email = email;
        this.gender = gender;
        this.status = status;
        this.accId = accId;
        this.typeId = typeId;
        this.cityId = cityId;
    }

    public UserBean(String uid, String contact, String mobile, String tele, String email, int cityId) {
        this.uid = uid;
        this.contact = contact;
        this.mobile = mobile;
        this.tele = tele;
        this.email = email;
        this.cityId = cityId;
    }

    public int getAccId() {
        return accId;
    }

    public void setAccId(int accId) {
        this.accId = accId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getTele() {
        return tele;
    }

    public void setTele(String tele) {
        this.tele = tele;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UserBean other = (UserBean) obj;
        if ((this.uid == null) ? (other.uid != null) : !this.uid.equals(other.uid)) {
            return false;
        }
        if (this.accId != other.accId) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 47 * hash + (this.uid != null ? this.uid.hashCode() : 0);
        hash = 47 * hash + this.accId;
        return hash;
    }
}
